<template>
  <div class="bgc">
    <div class="login">
      <span>
        <img src="../assets/logo.png" width="80px" />
      </span>
      <!-- 表单区域 -->
      <el-form ref="form" :model="form">
        <el-form-item>
          <el-input
            placeholder="请输入内容"
            v-model="form.input"
            clearable
            prefix-icon="el-icon-user"
            focus
          ></el-input>
        </el-form-item>
        <el-form-item>
          <el-input placeholder="请输入密码" v-model="form.input" prefix-icon="el-icon-key"></el-input>
        </el-form-item>
        <el-form-item>
          <el-button type="primary" round>登录</el-button>
          <el-button type="info" round>注册</el-button>
        </el-form-item>
      </el-form>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      form: {
        input: ''
      }
    }
  }
}
</script>

<style scoped>
.bgc {
  height: 100%;
  background: url(http://cdn.wuliwu.top/girljean) no-repeat;
  background-size: cover;
}
.login {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 480px;
  height: 280px;
  margin-left: -240px;
  margin-top: -200px;
  text-align: center;
  background-color: rgba(35, 15, 214, 0.2);
}
.el-input {
  display: block;
  margin: 0 auto;
  margin-top: 10px;
  margin-bottom: 10px;
  width: 360px;
}
</style>>
